package com.sdy.supermarket.biz.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@Accessors(chain = true)
public class NoticeSimpleVO {
    private static final long serialVersionUID = 1L;
    protected static final String DATE_FORMAT = "yyyy-MM-dd";
    protected static final String DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

    /**
     * 主键
     */
    @TableId
    private Integer noticeId;

    /**
     * 通知名称
     */
    private String noticeName;

    /**
     * 通知开始时间
     */
    @JsonFormat(pattern = DATETIME_FORMAT)
    private Date noticeStartTime;

    /**
     * 通知结束时间
     */
    @JsonFormat(pattern = DATETIME_FORMAT)
    private Date noticeEndTime;

    /**
     * 备注信息
     */
    private String remark;

    /**
     * 通知用户
     */
    private Integer userId;
}
